package Typage;

import java.util.Vector;

import Error.TypeError;
import Semantique.Visitor;

public class Eprimcall extends Expr {
	public Loc loc;

	public String f;

	public ExprList args;
	
	public Vector<String> typeList;
	
	public boolean isMethodCall = false;
	
	public String className = "";
	
	public Vector<Vector<String>> compatibleArgsList = new Vector<Vector<String>>();
	
	public int GetArgCount()
	{
		return this.args.GetCount();
	}

	public Eprimcall(Loc loc_init, String f_init, ExprList args_init) {
		this.loc = loc_init;
		this.f = f_init;
		this.args = args_init;
	}

	@Override
	public void accept(Visitor v) throws TypeError {
		v.visit(this);
	}
}